﻿using System;
using System.Collections.Generic;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x020002F5 RID: 757
	public class TIndirection : TParseTreeNode
	{
		// Token: 0x170005F7 RID: 1527
		// (get) Token: 0x06001AA2 RID: 6818 RVA: 0x0032E2E6 File Offset: 0x0032C4E6
		// (set) Token: 0x06001AA3 RID: 6819 RVA: 0x0032E2EE File Offset: 0x0032C4EE
		public virtual List<TIndices> Indices
		{
			get
			{
				return this.indices;
			}
			set
			{
				this.indices = value;
			}
		}

		// Token: 0x06001AA4 RID: 6820 RVA: 0x0032E2F7 File Offset: 0x0032C4F7
		public override void init(object arg1)
		{
			this.indices = (List<TIndices>)arg1;
		}

		// Token: 0x170005F8 RID: 1528
		// (get) Token: 0x06001AA5 RID: 6821 RVA: 0x0032E308 File Offset: 0x0032C508
		public virtual bool RealIndices
		{
			get
			{
				bool result = false;
				for (int i = 0; i < this.indices.Count; i++)
				{
					if (this.indices[i].RealIndices)
					{
						result = true;
						break;
					}
				}
				return result;
			}
		}

		// Token: 0x06001AA6 RID: 6822 RVA: 0x0032E345 File Offset: 0x0032C545
		public override TSourceToken getStartToken()
		{
			if (this.indices.Count == 0)
			{
				return null;
			}
			return this.indices[0].startToken;
		}

		// Token: 0x06001AA7 RID: 6823 RVA: 0x0032E367 File Offset: 0x0032C567
		public override TSourceToken getEndToken()
		{
			if (this.indices.Count == 0)
			{
				return null;
			}
			return this.indices[this.indices.Count - 1].endToken;
		}

		// Token: 0x040019AF RID: 6575
		private List<TIndices> indices;
	}
}
